package org.jeik.common;

import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

public enum ServiceType {

	PASSPORT(1,"جواز السفر"),
	FAMILY_BOOKLET(2,"دفتر عائلة"),
	IDENTITY_CARD(3, "بطاقة هوية"),
	VISA(4, "تأشيرة سفر"),
	NATIONAL_NUMBER(5, "رقم وطني"),
	GOOD_BEHAVIOR(6, "حسن سيرة");
	private Integer value;
	private String label;
	
	ServiceType(Integer value, String label){
		this.value = value;
		this.label = label;
	}
	
    private static final Map<String, ServiceType> lookup =
            new HashMap<String, ServiceType>();

        static {
            for (ServiceType type : EnumSet.allOf(ServiceType.class)) {
                lookup.put(type.name(), type);
            }
        }

        /**
         *
         * @param symbol
         * @return
         */
        public static ServiceType get(String symbol) {
            return lookup.get(symbol);
        }

		public static Map<String, ServiceType> getLookup() {
			return lookup;
		}

		public Integer getValue() {
			return value;
		}

		public void setValue(Integer value) {
			this.value = value;
		}

		public String getLabel() {
			return label;
		}

		public void setLabel(String label) {
			this.label = label;
		}
	
}
